/**
 * @file
 * @auth jinguangguo
 * @date 2016/12/27
 */

import ajax from '../../../grsc-base/util/ajax';

const ACTIVITY_NAME = '0118invite';

export default {

    /**
     * 基本信息初始化
     * 邀请id,礼包，好友邀请数量等
     *
     * @param param
     * @param header
     * @returns {*}
     */
    infoQuery(param = {}, header = {}) {
        param = $.extend(param, {
            activityName: ACTIVITY_NAME
        });
        return ajax.get('/exchangeApi/activity-invite/info-query', {
            data: param,
            header: header
        });
    },

    /**
     * 好友推荐列表
     * @param param
     * @param header
     * @returns {*}
     */
    recommendQuery(param = {}, header = {}) {
        param = $.extend(param, {
            activityName: ACTIVITY_NAME
        });
        return ajax.get('/exchangeApi/activity-invite/recommend-query', {
            data: param,
            header: header
        });
    },

    /**
     * 获得奖励列表
     * @param param
     * @param header
     * @returns {*}
     */
    rewardQuery(param = {}, header = {}) {
        param = $.extend(param, {
            activityName: ACTIVITY_NAME
        });
        return ajax.get('/exchangeApi/activity-invite/reward-query', {
            data: param,
            header: header
        });
    }

};